package cn.edu.nuaa.springmvc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/product")
public class ProductController {
    @RequestMapping(value = "/getProduct", method = {RequestMethod.GET, RequestMethod.POST})
    public void getProduct(String[] products) {
        for (String s : products) {
            System.out.println(s);
        }
    }
}
